<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%
	if (!(boolean)session.getAttribute("adminLogin")) {
		String path = request.getContextPath() + "/Admin/login.jsp";
		response.sendRedirect(path);
	}
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<%
	String str = pageContext.getAttribute("admin", PageContext.SESSION_SCOPE).toString();
%>
<body>
	<center>
		<form action="../AdminServlet" method="post">
			<table>
				<caption>管理员密码修改</caption>
				<tr>
					<td>账&nbsp;&nbsp;&nbsp;&nbsp;号：<input type="text" name="username" value="<%=str %>" readonly="readonly"></td>
				</tr>
				<tr>
					<td>密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password1"></td>
				</tr>
				<tr>
					<td>确认密码：<input type="password" name="password2"></td>
				</tr>
				<tr>
					<td colspan="2" align="center"><input type="submit" value="修改">&nbsp;<input
						type="reset" value="重置"></td>
				</tr>
			</table>
			<input type="hidden" name="action" value="repassword">
		</form>
	</center>
</body>
</html>